package com.zenithmind.library.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.time.LocalDate;

/**
 * 出版社创建DTO
 * 
 * @author ZenithMind
 * @since 2024-06-14
 */
@Data
@Schema(name = "出版社创建DTO", description = "创建出版社时的数据传输对象")
public class PublisherCreateDTO {

    @NotBlank(message = "出版社名称不能为空")
    @Size(max = 200, message = "出版社名称长度不能超过200个字符")
    @Schema(description = "出版社名称", example = "人民邮电出版社")
    private String name;

    @Size(max = 200, message = "出版社英文名长度不能超过200个字符")
    @Schema(description = "出版社英文名", example = "Posts & Telecom Press")
    private String nameEn;

    @Size(max = 50, message = "出版社编码长度不能超过50个字符")
    @Schema(description = "出版社编码", example = "PTP")
    private String code;

    @Schema(description = "成立日期", example = "1953-10-01")
    private LocalDate foundedDate;

    @Size(max = 100, message = "所在国家长度不能超过100个字符")
    @Schema(description = "所在国家", example = "中国")
    private String country;

    @Size(max = 100, message = "所在城市长度不能超过100个字符")
    @Schema(description = "所在城市", example = "北京")
    private String city;

    @Size(max = 500, message = "详细地址长度不能超过500个字符")
    @Schema(description = "详细地址")
    private String address;

    @Size(max = 50, message = "联系电话长度不能超过50个字符")
    @Schema(description = "联系电话", example = "010-12345678")
    private String phone;

    @Email(message = "邮箱格式不正确")
    @Size(max = 100, message = "邮箱长度不能超过100个字符")
    @Schema(description = "联系邮箱", example = "contact@ptpress.com.cn")
    private String email;

    @Schema(description = "官方网站", example = "https://www.ptpress.com.cn")
    private String website;

    @Size(max = 2000, message = "出版社简介长度不能超过2000个字符")
    @Schema(description = "出版社简介")
    private String description;

    @Schema(description = "出版社Logo")
    private String logo;
}
